#include <iostream>

// 定义交换两个整数的函数
void swap(int num1, int num2)
 {
    std::cout << "Inside swap function: num1 = " << num1 << ", num2 = " << num2 << std::endl;
    int temp = num1;
    num1 = num2;
    num2 = temp;
    std::cout << "Inside swap function after swap: num1 = " << num1 << ", num2 = " << num2 << std::endl;
}

int main() {
    int a = 10;
    int b = 20;
    std::cout << "Before swap: a = " << a << ", b = " << b << std::endl;
    swap(a, b); // 调用swap函数
    std::cout << "After swap: a = " << a << ", b = " << b << std::endl;
    return 0;
}